
<?php

	defined('_JEXEC') or die('Restricted access');
	require_once (dirname(__FILE__).DS.'helper.php');
	
	JHtml::_('behavior.framework', true);
	$uniqid	= $module->id;
	
	$slideshow = ModPtslideshowHelper::getSlideshow($params->get('category_'));
	$catSlideshow = ModPtslideshowHelper::getCategory($params->get('category_'));

	$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
	
	$doc =& JFactory::getDocument();
	
	if($params->get('load_jquery') == 1)
	{
		$doc->addScript(JURI::base()."modules/mod_ptslideshow/js/jquery-1.7.js"); // load js
	}

	$fle_namespace = $params->get('fle_namespace');
	$fle_selector = $params->get('fle_selector');
	$fle_animation = $params->get('fle_animation');
	$fle_easing = $params->get('fle_easing');
	$fle_direction = $params->get('fle_direction');
	$fle_animationLoop = $params->get('fle_animationLoop');
	$fle_smoothHeight = $params->get('fle_smoothHeight');
	$fle_startAt = $params->get('fle_startAt');
	$fle_slideshow = $params->get('fle_slideshow');
	$fle_slideshowSpeed = $params->get('fle_slideshowSpeed');
	$fle_animationSpeed = $params->get('fle_animationSpeed');
	$fle_initDelay = $params->get('fle_initDelay');
	$fle_randomize = $params->get('fle_randomize');
	$fle_pauseOnAction = $params->get('fle_pauseOnAction');
	$fle_pauseOnHover = $params->get('fle_pauseOnHover');
	$fle_useCSS = $params->get('fle_useCSS');
	$fle_touch = $params->get('fle_touch');
	$fle_video = $params->get('fle_video');
	$fle_controlNav = $params->get('fle_controlNav');
	$fle_directionNav = $params->get('fle_directionNav');
	$fle_prevText = $params->get('fle_prevText');
	$fle_nextText = $params->get('fle_nextText');
	$fle_keyboard = $params->get('fle_keyboard');
	$fle_multipleKeyboard = $params->get('fle_multipleKeyboard');
	$fle_mousewheel = $params->get('fle_mousewheel');
	$fle_pausePlay = $params->get('fle_pausePlay');
	$fle_pauseText = $params->get('fle_pauseText');
	$fle_playText = $params->get('fle_playText');
	$fle_controlsContainer = $params->get('fle_controlsContainer');
	$fle_manualControls = $params->get('fle_manualControls');
	$fle_sync = $params->get('fle_sync');
	$fle_asNavFor = $params->get('fle_asNavFor');
	$fle_itemWidth = $params->get('fle_itemWidth');
	$fle_itemMargin = $params->get('fle_itemMargin');
	$fle_minItems = $params->get('fle_minItems');
	$fle_maxItems = $params->get('fle_maxItems');
	$fle_move = $params->get('fle_move');

	$load_flexslider_css = $params->get('load_flexslider_css');
	if($load_flexslider_css == 1)
	$doc->addStyleSheet(JURI::base()."modules/mod_ptslideshow/css/flexslider.css"); // load css

	$load_flexslider = $params->get('load_flexslider');
	if($load_flexslider == 1)
		$doc->addScript(JURI::base()."modules/mod_ptslideshow/js/jquery.flexslider.js"); // load js
			
	require(JModuleHelper::getLayoutPath('mod_ptslideshow'));
?>